]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st/button: Add the clicked button to virtual function signature
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Tue, 15 Oct 2019 19:13:59 +0000 (21:13 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 16 Oct 2019 15:26:13 +0000 (15:26 +0000)
clicked signal includes a clicked mouse button parameter, but the vfunc
signature doesn't include it, so it won't be passed to the functions when
the signal is emitted.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/559

src/st/st-button.h

index 5ee45896e159c2d2b3e5eac4f97632b4266aa548..df0d1ea0c52d5e69b8d200eed6a4f7389c85bbe7 100644 (file)
@@ -40,7 +40,7 @@ struct _StButtonClass
   void (* transition) (StButton     *button);
 
   /* signals */
-  void (* clicked) (StButton *button);
+  void (* clicked) (StButton *button, int clicked_button);
 };
 
 StWidget    *st_button_new             (void);